//
//  DealerModle.m
//  BORGWORD
//
//  Created by 张国庆 on 15/11/26.
//  Copyright © 2015年 zgq. All rights reserved.
//

#import "DealerModle.h"

@implementation DealerModle
@synthesize DealerCode=_DealerCode;
@synthesize AscShortname=_AscShortname;
@synthesize AscName=_AscName;
@synthesize EntityCode=_EntityCode;
//nscoding  数据持久化,这样才可以存储
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:_DealerCode forKey:@"DealerCode"];
    [aCoder encodeObject:_AscName forKey:@"AscName"];
    [aCoder encodeObject:_AscShortname forKey:@"AscShortname"];
    [aCoder encodeObject:_EntityCode forKey:@"EntityCode"];
    
}
- (id)initWithCoder:(NSCoder *)aDecoder
{
    _DealerCode=[aDecoder decodeObjectForKey:@"DealerCode"];
    _AscShortname=[aDecoder decodeObjectForKey:@"AscShortname"];
    _AscName=[aDecoder decodeObjectForKey:@"AscName"];
    _EntityCode=[aDecoder decodeObjectForKey:@"EntityCode"];
    return self;
}
@end
